package com.apartment.own.mapper;

import java.util.List;

import com.apartment.own.domain.OwnAccountDetails;
import com.apartment.own.domain.OwnAccountInstallment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * 账单分期Mapper接口
 * 
 * @author @Dog_E
 * @date 2020-08-28
 */
public interface OwnAccountInstallmentMapper extends BaseMapper<OwnAccountInstallment>
{
    /**
     * 查询账单分期
     * 
     * @param id 账单分期ID
     * @return 账单分期
     */
    public OwnAccountInstallment selectOwnAccountInstallmentById(Long id);

    /**
     * 查询账单分期列表
     * 
     * @param ownAccountInstallment 账单分期
     * @return 账单分期集合
     */
    public List<OwnAccountInstallment> selectOwnAccountInstallmentList(OwnAccountInstallment ownAccountInstallment);

    /**
     * 新增账单分期
     * 
     * @param ownAccountInstallment 账单分期
     * @return 结果
     */
    public int insertOwnAccountInstallment(OwnAccountInstallment ownAccountInstallment);

    /**
     * 修改账单分期
     * 
     * @param ownAccountInstallment 账单分期
     * @return 结果
     */
    public int updateOwnAccountInstallment(OwnAccountInstallment ownAccountInstallment);

    /**
     * 删除账单分期
     * 
     * @param id 账单分期ID
     * @return 结果
     */
    public int deleteOwnAccountInstallmentById(Long id);

    /**
     * 批量删除账单分期
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOwnAccountInstallmentByIds(Long[] ids);
}
